package com.pet.system.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
@Data
@TableName(value = "user")
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="用户")
public class User implements Serializable {

    @TableId(type = IdType.AUTO)
    private  Long id;
    private  String password;
    private  String username;
    private   String phone;
    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    private   Integer sex;
    private   String role;
    private   String nickname;

}
